﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace WindowsGame2
{
    public static class Experiment
    {
        private static Vector2 origin;
        private static Vector2 pixelPosition;
        private static int radius;
        private static float  angle, angle_step;

        static Experiment()
        {
            origin = new Vector2(500, 500);
            pixelPosition = Vector2.Zero;
            radius = 50;
            angle_step = 0.1f;
            angle = 0.0f;
        }

        public static void DrawCircle(SpriteBatch a_spriteBatch)
        {
            while (angle < Math.PI * 2)
            {
                pixelPosition.X = angle * 100;
                pixelPosition.Y = radius * (float)Math.Cos(angle);

                a_spriteBatch.Draw(Assets.Pixel, pixelPosition + origin, Color.Orange);

                angle += angle_step;
            }
            angle = 0;
        }
    }
}
